/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package data.Services;

import java.util.List;
import model.entity.User;

/**
 *
 * @author admin
 */
public interface UserDAOService {
    public List<User> getAllUser();
    public User getUserByID(int id);
    public User getUserByEmail(String email);
    public List<User> findUserByUserName(String fullname);
    public List<User> findUserByRole(int roleID);
    public boolean createUser(User user);
    public boolean updateProfile(User user);
    public boolean updatePassword(User user);    
    public boolean updatePassword(int user_id,String password);    
    public boolean updateUserByAdmin(User user);        
    public boolean restoreUser(int userID);    
    public boolean deleteUser(int userID);    
    public boolean activeAccount(String name,String activeCode);    
    public int getRegisterId(User user);    
    public boolean updateStatus(String email, int status);
}
